class UserModel{
  String? email;
  String? password;
  String? phone;
  String? address;
  String? image;
  String? token;
  int id;
  String name;

  UserModel(this.id, this.name);

  UserModel.fromJson(Map<String, dynamic> json) :
    id = json['id'],
    name = json['name'],
    email = json['email'],
    phone = json['phone'],
    address = json['address'],
    image = json['image'],
    token = json['token'];



  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    return data;
  }


}